messageReceived{
  HttpClientEndpoint endpoint=(HttpClientEndpoint)ctx.getChannel().getAttachment();
  if (!readingChunks) {
    response=(HttpResponse)e.getMessage();
    if (!response.isChunked()) {
      if (!isKeepAlive(response)) {
 else {
        endpoint.responseDone(Channels.succeededFuture(e.getChannel()),false);
 else {
      readingChunks=true;
    HttpChunk chunk=(HttpChunk)e.getMessage();
    if (chunk.isLast() && !isKeepAlive(response)) {
 else     if (chunk.isLast() && isKeepAlive(response)) {
}
exceptionCaught{
  if (e.getChannel().isConnected()) {
    e.getChannel().close();
}
channelClosed{
}
